package com.xgggh.redpack.domain.home;

import android.os.Parcel;
import android.os.Parcelable;

public class PersonalItem implements Parcelable {
    private int id;
    private int order;
    private String name;
    private String jumpPage;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJumpPage() {
        return jumpPage;
    }

    public void setJumpPage(String jumpPage) {
        this.jumpPage = jumpPage;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.order);
        dest.writeString(this.name);
        dest.writeString(this.jumpPage);
    }

    public PersonalItem() {
    }

    protected PersonalItem(Parcel in) {
        this.id = in.readInt();
        this.order = in.readInt();
        this.name = in.readString();
        this.jumpPage = in.readString();
    }

    public static final Parcelable.Creator<PersonalItem> CREATOR = new Parcelable.Creator<PersonalItem>() {
        @Override
        public PersonalItem createFromParcel(Parcel source) {
            return new PersonalItem(source);
        }

        @Override
        public PersonalItem[] newArray(int size) {
            return new PersonalItem[size];
        }
    };
}
